// Fill out your copyright notice in the Description page of Project Settings.


#include "BluePrint/MyBluePrintNode.h"

#include "Helper/Helper.h"

// Sets default values
AMyBluePrintNode::AMyBluePrintNode()
{
 	// Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;

}

FString AMyBluePrintNode::HttpGet(FString url, FString canshu, int port)
{
	string Getstr = Helper::Get(TCHAR_TO_UTF8(*url),TCHAR_TO_UTF8(*canshu),port);
	Getstr = Helper::UTF8ToAnsi(Getstr);
	wstring wGetstr = Helper::AnsiToUnicode(Getstr);
	FString ShowStr = wGetstr.c_str();
	return ShowStr;
}

// Called when the game starts or when spawned
void AMyBluePrintNode::BeginPlay()
{
	Super::BeginPlay();
	
}

// Called every frame
void AMyBluePrintNode::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);

}

